package com.hjxr.sysadmin.zsj.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hjxr.sysadmin.zsj.mapper.ZonePolygonMapper;
import com.hjxr.sysadmin.zsj.domain.ZonePolygon;
import com.hjxr.sysadmin.zsj.service.IZonePolygonService;

/**
 * 地块画图坐标Service业务层处理
 *
 * @author hjxr
 * @date 2021-03-31
 */
@Service
public class ZonePolygonServiceImpl implements IZonePolygonService
{
    @Autowired
    private ZonePolygonMapper zonePolygonMapper;

    /**
     * 查询地块画图坐标
     *
     * @param zonePolygonId 地块画图坐标ID
     * @return 地块画图坐标
     */
    @Override
    public ZonePolygon selectZonePolygonById(Long zonePolygonId)
    {
        return zonePolygonMapper.selectZonePolygonById(zonePolygonId);
    }

    /**
     * 查询地块画图坐标列表
     *
     * @param zonePolygon 地块画图坐标
     * @return 地块画图坐标
     */
    @Override
    public List<ZonePolygon> selectZonePolygonList(ZonePolygon zonePolygon)
    {
        return zonePolygonMapper.selectZonePolygonList(zonePolygon);
    }

    /**
     * 新增地块画图坐标
     *
     * @param zonePolygon 地块画图坐标
     * @return 结果
     */
    @Override
    public int insertZonePolygon(ZonePolygon zonePolygon)
    {
        return zonePolygonMapper.insertZonePolygon(zonePolygon);
    }

    /**
     * 修改地块画图坐标
     *
     * @param zonePolygon 地块画图坐标
     * @return 结果
     */
    @Override
    public int updateZonePolygon(ZonePolygon zonePolygon)
    {
        return zonePolygonMapper.updateZonePolygon(zonePolygon);
    }

    /**
     * 批量删除地块画图坐标
     *
     * @param zonePolygonIds 需要删除的地块画图坐标ID
     * @return 结果
     */
    @Override
    public int deleteZonePolygonByIds(Long[] zonePolygonIds)
    {
        return zonePolygonMapper.deleteZonePolygonByIds(zonePolygonIds);
    }

    /**
     * 删除地块画图坐标信息
     *
     * @param zonePolygonId 地块画图坐标ID
     * @return 结果
     */
    @Override
    public int deleteZonePolygonById(Long zonePolygonId)
    {
        return zonePolygonMapper.deleteZonePolygonById(zonePolygonId);
    }
}
